package com.qf.im.application;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * SpringBoot工程启动时执行
 */
@Component
public class ApplicationRuning implements CommandLineRunner {

    @Autowired
    private NettyWsServer nettyWsServer;

    @Override
    public void run(String... args) throws Exception {
        nettyWsServer.init();
    }
}
